package dian.qing.li.demo.security.mapper;

import dian.qing.li.demo.security.dto.AuthorityDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-07-01
 */
@Repository
public interface AuthorityMapper extends BaseMapper<AuthorityDto> {

    @Select("SELECT max(SUBSTRING(auth_code,2,9) + 0) FROM `p_authority` where deleted = 0")
    Long initCode();
}
